﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="cn_points_for_result" Codebehind="points_for_result.aspx.cs" %>


<%@ Register Src="~/cn/UserControl/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/cn/UserControl/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>下定兑换，<%=(new Gift.WebApp.BasicSet()).TitleBind() %></title>
    <meta name="Keywords" content="<%=(new Gift.WebApp.BasicSet()).KeywordBind() %>" />
    <meta name="Description" content="<%=(new Gift.WebApp.BasicSet()).DescriptionBind() %>" />
    <link type="text/css" rel="stylesheet" href="/script/css/index.css" />
    <link type="text/css" rel="stylesheet" href="/script/css/member.css" />
    <link type="text/css" rel="stylesheet" href="/script/css/ie.css" />


    <script type="text/javascript" src="/script/js/jquery-1.6.2.min.js"></script>

    <script type="text/javascript">
        $(function () {
            $("#btnOrderPay").click(function () {
                $.ajax({
                    type: "POST",
                    url: "pointsForOrderPayHandler.ashx",
                    data: "orderNo=" + $("#hdfOrderNo").val(),
                    success: function (msg) {
                        if (msg == "0") {
                            art.dialog.tips("您的消费积分不足以兑换订单积分！", 1.5);
                        }
                        else if (msg == "1") {
                            art.dialog.tips("恭喜您，兑换成功！", 1.5);
                            var lurl = "window.location.href='/cn/member_center/points_for_order_info.html?orderNo=" + $('#hdfOrderNo').val() + "'";
                            setTimeout(lurl, 1500);
                        }
                    }
                });
                return false;
            });
        });
    </script>

</head>
<body>
    <uc1:header ID="Header1" runat="server" />
    <div class="container">
        <div class="rightcontent shop_cart">
            <h5 class="exchange2"><span>1.填写兑换信息</span><span><strong>2.下定兑换</strong></span></h5>
            <div class="contain">
                <h1>
                    您的订单已经成功提交!</h1>
                <%Response.Write(OrderBind()); %>
            </div>
            <!--end rightcontent-->
            <span class="clear"></span>
        </div>
    </div>
    <uc2:footer ID="Footer1" runat="server" />
</body>
</html>
